package com.tianji.learning.mapper;

import com.tianji.api.dto.IdAndNumDTO;
import com.tianji.learning.domain.LearningRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
* @author 阿娇的秘密星球
* @description 针对表【learning_record(学习记录表)】的数据库操作Mapper
* @createDate 2024-12-19 15:12:30
* @Entity com.tianji.learning.domain.LearningRecord
*/
public interface LearningRecordMapper extends BaseMapper<LearningRecord> {
    List<IdAndNumDTO> countLearnedSections(
            @Param("userId") Long userId,
            @Param("begin") LocalDateTime begin,
            @Param("end") LocalDateTime end);

}




